import request from "@/utils/http";


export const list = (params) => {
    return request({
        url: "/api/blade-basic/app/carExpense/list?current=1&size=-1",
        params,
    });
};
/**
 * 车牌号码
 *  label: 'carNumber',
    value: 'id'
 *  */

export const carInfo = (params) => {
    return request({
        url: "/api/blade-basic/app/carInfo/list",
        params,
    });
};

export const getDetail = (id) => {
    return request({
        url: `/api/blade-basic/app/carExpense/detail?id=${id}`,
        method: 'get',
    })
}

export const remove = (ids) => {
    return request({
        url: `/api/blade-basic/app/carExpense/remove?ids=${ids}`,
        method: 'post',
    })
}

export const add = (row) => {
    return request({
        url: '/api/blade-basic/app/carExpense/submit',
        method: 'post',
        data: row
    })
}

export const update = (row) => {
    return request({
        url: '/api/blade-basic/app/carExpense/submit',
        method: 'post',
        data: row
    })
}
//用车评价
export const carEvaluation = (id) => {
    return request({
        url: `/api/blade-basic/app/carEvaluation/list?applyCarId=${id}`,
    })
}
